@charset "utf-8";

*{
    margin: 0;
    padding: 0;
}
//rem换算函数
@function r($px){
    @return ($px/40)*1rem; 
}
#switchPillow{
    width: 400px;
    height: 100vh;
    background-position: 0% 0%;
    position: absolute;
    left: 55%;
    margin-left: -300px;
    overflow: hidden;
    max-height: 812px;
    background-image: url(../img/luckyDraw/ld_bg.jpg);
    background-size: cover;
     //logo
    #logo{
        width: 100%;
        position: absolute;
        left: 75%;
        top: 5%;
        transform: translateX(-50%);
        img{
            width: 50%;
            top: 8%;
        }
    }
    #switchBtn{
        margin: 0;
        padding: 0;
        width: 100%;
        position: absolute;
        left: 50%;
        top: 12%;
        transform: translateX(-50%);
        z-index: 5;
        div{
            color: white;
            
            i{
                color: white;
            }
        }
        #turnRight{
            margin-left: 8%;
        }
    }
    #switchArea{
        width: 100%;
        position: absolute;
        left: 50%;
        top: 8%;
        transform: translateX(-50%);
        img{
            width: 100%;
        }
        &>div{
            width: 50%;
            position: absolute;
            top: 36%;
            left: 50%;
            transform: translateX(-50%);
            img{
                width: 100%;
            }
            div{
                width: 100%;
                position: absolute;
                color: white;
                left: 80%;
                top: 130%;
                transform: translateX(-50%);
            }
        }
    }
    //参与提示信息
    #tips{
        margin: 0;
        width: 100%;
        height: 20vh;
        position: absolute;
        top: 65%;
        left: 50%;
        transform: translateX(-50%);
        .divTips2{
            height: r(20);
            font-size: r(6);
            color: white;
            text-align: center;
            margin-top: r(15);
        }
    }
    //按钮
    #allBtn{
        position: absolute;
        left: 50%;
        top: 80%;
        transform: translateX(-50%);
        width: 100%;
        .btn{
            background-color: rgba(255,0,0,0); 
            border: 1px solid rgb(255,271,159);
            color: rgb(255,271,159);
        }
        &>div:first-of-type{
            margin-left: 3%;
        }
    }
     //模态框
    #myModal{
        margin: 0;
        padding: 0;
        width: 400px;
        height: 100vh;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        .modal-dialog{
            margin: 0;
        }
        //模态框内容
        .modal-content{
            width: 400px;
            height: 80vh;
            margin-top: 10vh;
            background-image: url(../img/switchPillow/se_bg.jpg);
            //模态框主体
            .modal-body{
                padding:0 ;
                margin: 0;
                padding-top: r(40);
                position: relative;
                .col-xs-10:not(.CongratsText){
                    border-bottom: 1px solid white;
                    border-top: 1px solid white;
                    height: 5px;
                }
                .col-xs-8{
                    margin-top: 10px;
                    margin-bottom: 10px;
                    text-align: center;
                    color: white;
                    letter-spacing:r(18);
                }
                &>.nowScore,.historyScore{
                    font-weight: 600;
                    font-size: 30px;
                    color: rgb(255,236,139);
                }
               .CongratsText{
                   text-align: center;
                   font-size: 14px;
                   color: white;
                   .nowScore{
                       font-weight: 600;
                        font-size: 30px;
                        color: rgb(255,236,139);
                   }
               }
               
               #produceImg{
                   width: 100%;
                   position: absolute;
                   top: 176%;
                   left: 75%;
                   transform: translateX(-50%);
                   img{
                       width: 50%;
                   }
               }
               #produceName{
                   width: 100%;
                   position: absolute;
                   top: 300%;
                   left: 55%;
                   transform: translateX(-50%);
                   color: white;
               }
               #produceInfo{
                   margin: 0;
                   padding: 0;
                   width: 90%;
                   position: absolute;
                   top: 370%;
                   left: 50%;
                   transform: translateX(-50%);
                   color: white;
                   font-size: r(30);
               }
               
            }
            //模态框尾部
            .modal-footer{
                border: none;
               #closeBtn{
                    position: absolute;
                    left: 50%;
                    top: 80%;
                    transform: translateX(-50%);
                    background-color: rgba(255,0,0,0); 
                    border: 1px solid rgb(255,271,159);
                    color: rgb(255,271,159);
                }
            }
        }
    }
}


@media (max-width:768px){
    #switchPillow{
        width:100%;
        left: 0%;
        margin-left: 0px;
        background-size: cover;
    }
     #switchPillow #tips .divTips2{
        height: r(40);
        font-size: r(25);
        color: white;
        text-align: center;
        margin-top: r(70);
    }
    #switchPillow #myModal{
        width: r(700);
    }
    #switchPillow #myModal .modal-content{
        width: r(700);
        height: r(1050);
    }
    #switchPillow #myModal .modal-content .modal-body{
        width: r(700);
        padding-top: r(50);
    }
    #switchPillow #myModal .modal-content .modal-body .col-xs-8{
        letter-spacing:r(36);
    }
}